// 全局弹窗
// noinspection JSUnusedLocalSymbols

export default {
    namespaced: true,
    state: {
        // 决定弹窗是否显示的变量
        show: {},
        // 弹窗需要显示的数据
        data: {},
    },
    mutations: {
        method(state, payload) {

        },
        // 显示弹窗并传递数据
        showDialog(state, {name, data}) {
            state.show[name] = true;
            state.data[name] = data;
        },
        closeDialog(state, name) {
            state.show[name] = false;
        }
    },
    actions: {
        method: ({dispatch, commit, state, rootGetters}, payload) => {

        },
    },
    getters: {},
}